/**
 * @author : dormi330
 * @date : 2020-03-04
 * description : 文件描述
 */

package isva.impl.model;

import org.dormi.learn.promotion.model.Member;
import org.dormi.learn.promotion.model.Order;
import org.dormi.learn.promotion.model.OrderLine;
import org.dormi.learn.promotion.util.BaseSerializable;

import java.util.Date;
import java.util.List;

public class OrderIsvA extends BaseSerializable implements Order {
    private Member member;
    private Date placedTime;
    private List<OrderLine> lines;

    public OrderIsvA(Member member, List<OrderLine> lines) {
        this.member = member;
        this.placedTime = new Date();
        this.lines = lines;
    }

    @Override
    public Date getPlacedTime() {
        return placedTime;
    }

    public void setPlacedTime(Date placedTime) {
        this.placedTime = placedTime;
    }

    @Override
    public Member getMember() {
        return member;
    }

    public void setMember(MemberIsvA member) {
        this.member = member;
    }

    @Override
    public List<OrderLine> getLines() {
        return lines;
    }

    public void setLines(List<OrderLine> lines) {
        this.lines = lines;
    }

}
